<template>
  <ElConfigProvider :locale="language === 'zh' ? zhCn : en">
    <router-view/>
  </ElConfigProvider>
</template>

<script setup>
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/lib/locale/lang/zh-cn';
import en from 'element-plus/lib/locale/lang/en';
import {useStore} from 'vuex';
import {computed} from 'vue';
const store = useStore();
const language = computed(()=>store.getters.language);

</script>

<style lang="scss">

</style>
